package com.ciis.system.module.mapper;

import com.ciis.base.BaseMapper;
import com.ciis.base.Constants;
import com.ciis.base.page.IPage;
import com.ciis.base.page.Page;
import com.ciis.system.module.domain.TSysModule;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zhangdajun
 * Date: 14-6-19
 * Time: 下午8:11
 * To change this template use File | Settings | File Templates.
 */
@Repository("sysModuleMapper")
public interface ITSysModuleMapper extends BaseMapper<TSysModule> {


    public void save(TSysModule module) throws Exception;

    public void update(TSysModule module) throws Exception;

    public void deleteById(String id) throws Exception;

    public Page<TSysModule> findPageList(@Param(Constants.PAGE_KEY)IPage<TSysModule> page,@Param(Constants.PARAM) TSysModule obj) throws Exception;

    public List<TSysModule> findModuleListByPid(HashMap<String,String> param) throws Exception;

    public List<TSysModule> findModuleListById(HashMap<String,String> param) throws Exception;

    public List<TSysModule> findModuleListByLevel(HashMap<String,String> param) throws Exception;


}
